<?php
// select_post.php?id=AfsdE
$id = to_base_10($_GET['id']);
$result = sql_query("select * from posts where id = $id");
// insert_post.php
$title = escape($_POST['title']);
$result = sql_query(
"insert into posts (title) values ('$title')"
);
$id = sql_get_lest_insert_id($result);
$url = 'select_post.php?id=' . to_base_62($id);
1